﻿using RpcHelper.Validate;
using RpcModel;
using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Gateway.Model
{
    public class TransmitSchemeAdd
    {
        /// <summary>
        /// 所属服务节点类型
        /// </summary>
        [NumValidate("rpc.store.systemtype.error", 1)]
        public long SystemType
        {
            get;
            set;
        }
        /// <summary>
        /// 集群Id
        /// </summary>
        [NumValidate("rpc.store.mer.id.error", 1)]
        public long RpcMerId
        {
            get;
            set;
        }
        /// <summary>
        /// 方案名称(默认方案传：Def)
        /// </summary>
        [LenValidate("rpc.store.transmit.scheme.len", 2, 50)]
        [FormatValidate("rpc.store.transmit.scheme.error", ValidateFormat.纯字母)]
        public string Scheme
        {
            get;
            set;
        }

        /// <summary>
        /// 负载均衡类型
        /// </summary>
        [EnumValidate("rpc.store.transmit.type.error", typeof(TransmitType))]
        public TransmitType TransmitType
        {
            get;
            set;
        }
      
       
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable
        {
            get;
            set;
        }
    }
}
